import logging

from appium.webdriver.common.mobileby import MobileBy

from Hogwarts.Homeworks.hw0704.page_objects.base import Base



class PageMemberProfileOperate(Base):
    _BTN_EDIT_MEMBER = (MobileBy.XPATH, "//*[@text='编辑成员']")

    def tap_edit_member_button(self):
        from Hogwarts.Homeworks.hw0704.page_objects.page_member_profile_edit import PageMemberProfileEdit

        logging.info("STEP：点击【编辑成员】")
        self.find_and_click(*self._BTN_EDIT_MEMBER)

        return PageMemberProfileEdit(self.driver)